
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Deploying the Web ActiveX</TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="dwprgugp59.htm">Previous</A>&nbsp;
<!-- End Header -->
<A NAME="BGBDBIAA"></A><h1>Deploying the Web ActiveX</h1>
<A NAME="TI2396"></A><h4>CAB file for deployment</h4>
<A NAME="TI2397"></A><p>The PowerBuilder Setup program installs the <i>PSDWC115.CAB</i> file
in the <i>Sybase\Shared\PowerBuilder</i> directory.
This CAB file contains files and information the client Web browser
(Internet Explorer) needs for installing the Web ActiveX and the
Transaction Object control. The CAB file includes:<A NAME="TI2398"></A>
<ul>
<li class=fi>An
Open Software Distribution information file</li>
<li class=ds>DLLs for the controls
</li>
</ul>
</p>
<A NAME="TI2399"></A><p>The browser manages installation of the ActiveX controls using
the information in the CAB file. It installs the controls in the
system registry and maintains its Java class path. If your Web ActiveX
control uses a PSR file, you need only to tell the browser how to
find the CAB file.</p>
<A NAME="TI2400"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To make the Web ActiveX and Transaction Object
control available to users:</p>
<ol><li class=fi><p>Put the CAB file on your Web server.</p><p>If the Web server uses Internet Infomation Services (IIS)
6.0, you need to configure IIS to recognize the .<i>pbl</i>,
.<i>pbd</i>, and .<i>psr</i> extensions
as MIME types. See <A HREF="dwprgugp54.htm#CHDDGCBG">"Adding MIME types to IIS
6.0"</A>.</p></li>
<li class=ds><p>Refer to the CAB file on the Web page in the CODEBASE
attribute of the Object element.</p></li></ol>
<br><A NAME="TI2401"></A><p>If your Web page uses a JDBC connection, the Web ActiveX has
additional deployment requirements:<A NAME="TI2402"></A>
<ul>
<li class=fi>The Sun JRE 1.2 or later must be installed on the client.
Users can download the latest version of the JRE from the Sun Java
Web site at <i>http://www.java.com:80/en/download/windows_manual.jsp</i> (where <i>en</i> indicates
the English language version).</li>
<li class=ds>The path to the file<i> jvm.dll</i> (<i>...\JRE\bin\client</i> for
JRE 1.4 and <i>...\JRE\bin\classic</i> for
JRE 1.2 or 1.3) must be added to each user's system PATH
environment variable.</li>
<li class=ds>The following files must be in a directory in the
client's system PATH environment variable: <i>pbjvm115.dll</i>and <i>pbshr115.dll</i>.</li>
<li class=ds>The <i>pbjdbc12115.jar</i> file, which
contains class files required by the Web ActiveX, must be deployed
to the client. You can deploy the JAR file by referencing it in
the CODEBASE attribute of the Object element in your Web page.<i></i></li>
<li class=ds>Java classes required by your database vendor's
client layer must be available on the client. They can be added
to a CAB file that is referenced in the CODEBASE attribute of the
Object element in your Web page. For example, if you are using Sybase
jConnect to connect to a database, the <i>jconn2.jar </i>file
should be included in the CAB file. If the client layer is provided
in a JAR file, it can be referenced directly in the CODEBASE attribute.
</li>
</ul>
</p>
<A NAME="TI2403"></A><h4>Deploying a new version</h4>
<A NAME="TI2404"></A><p>The version number in the value of the CODEBASE attribute
determines whether the browser downloads and installs a new version
of the ActiveX controls. The browser compares the version number
in the CODEBASE value with the version of the controls that is installed
in the system registry. If the version numbers do not match, the
browser downloads the CAB file again and installs it.</p>
<A NAME="TI2405"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To deploy the new CAB file when you get a new
version of PowerBuilder:</p>
<ol><li class=fi><p>Find the new version number by checking
the version number of any PowerBuilder DLL (as described in <A HREF="dwprgugp55.htm#BGBDCAIG">"HTML for inserting the controls
on a Web page"</A>).</p></li>
<li class=ds><p>Edit the Web pages that refer to the CAB file.
Change the version number in the CODEBASE attribute to match the
new number.</p></li>
<li class=ds><p>Replace the CAB file on the Web server with the
new version.</p></li></ol>
<br>